﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IDAL;

namespace DAL
{
    public class Video_albumDAL : IDAL.Video_albumIDAL
    {
        DataMode.DataModeDataContext ctx = new DataMode.DataModeDataContext();

        public void addVideo_albumDAL(String album_name, System.DateTime now,String album_description, string album_path, string album_user)//往Userinfo表里增加一条新记录
        {
            DataMode.video_album video_album = new DataMode.video_album();
            video_album.album_create_time = now;
            video_album.album_description = album_description;
            video_album.album_name = album_name;
            video_album.album_path = album_path;
            video_album.album_user = album_user;

            ctx.video_album.InsertOnSubmit(video_album);
            ctx.SubmitChanges();
        }
    }
}
